import request from '@/api/request'
// 获取商品详情
function getGoodsInfo(data) {
    return request({
        url: '/goods/detailaction',
        method: 'GET',
        data,
    })
}
// 添加到购物车
function addToCarInfo(data) {
    return request({
        url: '/cart/addCart',
        method: 'POST',
        data,
    })
}

export { getGoodsInfo, addToCarInfo }
